import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

// 查询打印列表
export function listProductPut(query) {
  return request({
    url: '/business/put/list',
    method: 'get',
    params: query
  })
}

// 新增打印标签
export function addPut(data) {
  return request({
    url: '/business/put',
    method: 'post',
    data: data
  })
}

// 删除打印标签
export function delPut(putId) {
  return request({
    url: '/business/put/' + putId,
    method: 'delete'
  })
}

export function updatePut(data) {
  return request({
    url: '/business/put/modify',
    method: 'post',
    data: data
  })
}


// 下载打印标签导入模板
export function importTemplate() {
  return request({
    url: '/business/put/importTemplate',
    method: 'get'
  })
}

// 打印完毕后
export function print(data) {
  return request({
    url: '/business/put/print',
    method: 'post',
    data: data
  })
}

// 根据Ids获取标签打印列表
export function getPut(putId) {
  return request({
    url: '/business/put/' + putId,
    method: 'get'
  })
}
